<template>
	<el-button :type="type" @click="click" :size="size" :icon="icon" @click.ctrl.exact="ctrlClick">
		<slot></slot>
	</el-button>
</template>
<script>
	export default {
		name: 'Button',
		props: {
			text: {
				default: ''
			},
			size: {
				default: 'mini',
			},
			type: {
				default: 'green',
			},
			icon: {
				default: ''
			}
		},
		methods: {
			click() {
				this.$emit('click')
			},
			ctrlClick() {
				this.$emit('ctrlClick')
			}
		}
	}
</script>